package ${groupId}.${artifactIdProjectPackageName}.common.result;

/**
 * 系统预设错误代码
 */
public class SystemErrorCode{

    public static ErrorCode SUCCESS = ErrorCode.newInstance("200",200, "成功");

    public static ErrorCode ERROR = ErrorCode.newInstance("400",400, "错误");


    public static ErrorCode REDIRECT = ErrorCode.newInstance("302",302, "重定向");
    public static ErrorCode EXCEPTION = ErrorCode.newInstance("500",500, "内部异常");
    public static ErrorCode SERVICE_IS_BUSY = ErrorCode.newInstance("40001",40001, "服务繁忙");
    public static ErrorCode ADD_FIAL = ErrorCode.newInstance("40006",40006, "数据库添加失败");
    public static ErrorCode UPDATE_FIAL = ErrorCode.newInstance("40007",40007, "数据库更新失败");
    public static ErrorCode DELETE_FIAL = ErrorCode.newInstance("40008",40008, "数据库删除失败");
    public static ErrorCode NO_OBJECT_FOUND = ErrorCode.newInstance("41004",41004, "未找到对象");
    public static ErrorCode INSUFFICIENT_AUTHORITY = ErrorCode.newInstance("41002",41002, "权限不足，请确认当前登录用户");
    public static ErrorCode SYSTEM_IS_BUSY = ErrorCode.newInstance("41005",41005, "系统繁忙");
    public static ErrorCode NOT_FIND = ErrorCode.newInstance("41006",41006, "资源不存在");
    public static ErrorCode PARAMETER_ERROR = ErrorCode.newInstance("41003",41003, "参数错误");
    public static ErrorCode NOT_MORE_INFO = ErrorCode.newInstance("41009",41009, "没有更多数据了");
    public static ErrorCode HAS_EXIST = ErrorCode.newInstance("42001",42001, "数据已存在");

}
